import type { AxiosRequestConfig, AxiosResponse } from "axios";
export interface RequestInterceptors {
  // 请求成功拦截器：可选
  requestInterceptor?: (config: AxiosRequestConfig) => AxiosRequestConfig;
  // 请求失败拦截器：可选
  requestInterceptorCatch?: (err: any) => any;
  // 响应成功拦截器：可选
  responseInterceptor?: (res: AxiosResponse) => AxiosResponse;
  // 响应失败拦截器：可选
  responseInterceptorCatch?: (err: any) => any;
}
export interface RequestConfig extends AxiosRequestConfig {
  // 拦截器对象：可选
  interceptors?: RequestInterceptors;
}
